/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/* eslint-disable array-callback-return */
import mockjs from 'mockjs';

const { mock } = mockjs;
// 订单管理，获取业务员单号设置表格
export default {
  // 获取驿站列表
  'GET /Api/orderManage/WaybillSource/getSiteNameList': (req, res) => {
    res.send({
      msg: '成功',
      code: 0,
      data: [
        {
          site_id: '10',
          site_name: '快宝急送',
        },
        {
          site_id: '12',
          site_name: '站点',
        },
        {
          site_id: '13',
          site_name: '站点3',
        },
        {
          site_id: '30',
          site_name: '斯特3',
        },
        {
          site_id: '50',
          site_name: '123',
        },
        {
          site_id: '77',
          site_name: '费测站点（不要删）',
        },
        {
          site_id: '78',
          site_name: '123456',
        },
        {
          site_id: '80',
          site_name: 'gsdg ',
        },
        {
          site_id: '81',
          site_name: '189站点',
        },
      ],
    });
  },
  // 获取业务员列表
  'GET /Api/orderManage/WaybillSource/getCourierList': (req, res) => {
    res.send({
      code: 0,
      msg: '成功',
      data: {
        page: 1,
        pageSize: 20,
        totalPages: 1,
        totalCount: 5,
        list: [
          {
            user_id: '17759',
            site_name: '画不圆的圈',
            courier_info: '18300761174',
            waybill_source: [
              {
                id: '4434',
                source: {
                  auth_id: '35646',
                  source_type: '6',
                  brand: 'tt',
                  month_no: '0',
                  account: 'ddd',
                  password: '123',
                  customer: 'ddd',
                  quantity: '',
                  brand_name: '天天快递',
                  u_id: 'kop_35646',
                },
                status: '0',
                status_value: '0',
                price: '0.03',
                brand_name: '天天',
                brand_type: 'tt',
                waybill_quantity: '20',
              },
              {
                id: '4460',
                source: {
                  branch_code: '31271',
                  brand_code: 'ZTO',
                  brand_name: '中通快递',
                  kb_code: 'zt',
                  brand_type: 2,
                  branch_name: '高碑店白沟',
                  allocated_quantity: '0',
                  cancel_quantity: '0',
                  quantity: '0',
                  address: [
                    {
                      country: '中国',
                      province: '河北省',
                      city: '保定市',
                      district: '南市区',
                      detail: '快宝测试地址',
                    },
                  ],
                  auth_id: '35659',
                  source_type: '19',
                  nickname: '41014143166_2251799814896318',
                  u_id: 'pdd_universal_31271',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '中通',
                brand_type: 'zt',
                waybill_quantity: '10',
              },
              {
                id: '4467',
                source: {
                  auth_id: '35635',
                  source_type: '6',
                  brand: 'yd',
                  month_no: '0',
                  account: 'kkk',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '韵达快递',
                  u_id: 'kop_35635',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '韵达',
                brand_type: 'yd',
                waybill_quantity: '1',
              },
            ],
          },
          {
            user_id: '332437',
            site_name: '我的店铺名',
            courier_info: '13661916491',
            waybill_source: [
              {
                id: '4436',
                source: {
                  auth_id: '35665',
                  source_type: '6',
                  brand: 'yd',
                  month_no: '0',
                  account: '597810597811',
                  password: 'JH7jyrRq5fZDnNBuWscPMhTQ2VAaEd',
                  customer: '',
                  quantity: '',
                  brand_name: '韵达快递',
                  u_id: 'kop_35665',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '韵达',
                brand_type: 'yd',
                waybill_quantity: '30',
              },
              {
                id: '4437',
                source: {
                  auth_id: '35646',
                  source_type: '6',
                  brand: 'tt',
                  month_no: '0',
                  account: 'ddd',
                  password: '123',
                  customer: 'ddd',
                  quantity: '',
                  brand_name: '天天快递',
                  u_id: 'kop_35646',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '天天',
                brand_type: 'tt',
                waybill_quantity: '-1',
              },
              {
                id: '4438',
                source: {
                  branch_code: '51405',
                  brand_code: 'ZTO',
                  brand_name: '中通快递',
                  kb_code: 'zt',
                  brand_type: 2,
                  branch_name: '昆山花桥',
                  allocated_quantity: '422',
                  cancel_quantity: '2',
                  quantity: '14',
                  address: [
                    {
                      country: '中国',
                      province: '江苏省',
                      city: '苏州市',
                      district: '昆山市',
                      detail: '曹新路76号(快宝网络测试)',
                    },
                  ],
                  auth_id: '35658',
                  source_type: '18',
                  nickname: 'pdd3982093908',
                  u_id: 'pindd_51405',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '中通',
                brand_type: 'zt',
                waybill_quantity: '1',
              },
            ],
          },
          {
            user_id: '17337',
            site_name: '测试账号',
            courier_info: '17596123053',
            waybill_source: [
              {
                id: '4439',
                source: {
                  auth_id: '35635',
                  source_type: '6',
                  brand: 'yd',
                  month_no: '0',
                  account: 'kkk',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '韵达快递',
                  u_id: 'kop_35635',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '韵达',
                brand_type: 'yd',
                waybill_quantity: '-1',
              },
              {
                id: '4440',
                source: {
                  auth_id: '35646',
                  source_type: '6',
                  brand: 'tt',
                  month_no: '0',
                  account: 'ddd',
                  password: '123',
                  customer: 'ddd',
                  quantity: '',
                  brand_name: '天天快递',
                  u_id: 'kop_35646',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '天天',
                brand_type: 'tt',
                waybill_quantity: '-1',
              },
              {
                id: '4447',
                source: {
                  auth_id: '35664',
                  source_type: '6',
                  brand: 'post',
                  month_no: '0',
                  account: '123',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '邮政快递包裹',
                  u_id: 'kop_35664',
                },
                status: '1',
                status_value: '1',
                price: '0.10',
                brand_name: '邮政快包',
                brand_type: 'post',
                waybill_quantity: '3',
              },
              {
                id: '4448',
                source: {
                  auth_id: '35673',
                  source_type: '6',
                  brand: 'sf',
                  month_no: '0',
                  account: '123',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '顺丰速运',
                  u_id: 'kop_35673',
                },
                status: '1',
                status_value: '1',
                price: '0.01',
                brand_name: '顺丰',
                brand_type: 'sf',
                waybill_quantity: '-1',
              },
              {
                id: '4449',
                source: {
                  branch_code: '51405',
                  brand_code: 'ZTO',
                  brand_type: 'ZTO',
                  brand_name: '中通',
                  kb_code: 'zt',
                  branch_name: '昆山花桥',
                  allocated_quantity: 16058,
                  cancel_quantity: 28,
                  quantity: 228,
                  address: [
                    {
                      city: '苏州市',
                      detail: '花桥镇',
                      district: '昆山市',
                      province: '江苏省',
                    },
                  ],
                  segment_code: 'NORMAL',
                  auth_id: '35660',
                  source_type: '2',
                  nickname: 'alilan02042',
                  u_id: 'taobao_51405',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '中通',
                brand_type: 'zt',
                waybill_quantity: '-1',
              },
              {
                id: '4459',
                source: {
                  branch_code: '774892',
                  brand_code: 'YTO',
                  brand_type: 'YTO',
                  brand_name: '圆通',
                  kb_code: 'yt',
                  branch_name: '广西省贺州',
                  allocated_quantity: 25,
                  cancel_quantity: 1,
                  quantity: 1,
                  address: [
                    {
                      city: '上海市',
                      detail: '通协路269号6号楼6楼A单元',
                      district: '长宁区',
                      province: '上海',
                    },
                  ],
                  segment_code: 'NORMAL',
                  auth_id: '35660',
                  source_type: '2',
                  nickname: 'alilan02042',
                  u_id: 'taobao_774892',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '圆通',
                brand_type: 'yt',
                waybill_quantity: '-1',
              },
              {
                id: '4461',
                source: {
                  auth_id: '35636',
                  source_type: '6',
                  brand: 'jt',
                  month_no: '0',
                  account: '123',
                  password: 'kkk',
                  customer: '',
                  quantity: '',
                  brand_name: '极兔速递',
                  u_id: 'kop_35636',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '极兔',
                brand_type: 'jt',
                waybill_quantity: '-1',
              },
              {
                id: '4482',
                source: {
                  branch_code: '200003',
                  branch_name: '上海虹桥公司',
                  brand_code: 'STO',
                  brand_type: '2',
                  brand_name: '申通',
                  kb_code: 'sto',
                  allocated_quantity: '965',
                  cancel_quantity: '0',
                  quantity: '241',
                  address: [
                    {
                      detail: '上海虹桥公司',
                      district: '闵行区',
                      city: '上海市',
                      province: '上海',
                    },
                  ],
                  auth_id: '35661',
                  source_type: '12',
                  nickname: '快宝网络',
                  u_id: 'wuliuyun_200003',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '申通',
                brand_type: 'sto',
                waybill_quantity: '-1',
              },
            ],
          },
          {
            user_id: '17828',
            site_name: '旭东小商品城',
            courier_info: '18715276649',
            waybill_source: [
              {
                id: '4422',
                source: {
                  auth_id: '35665',
                  source_type: '6',
                  brand: 'yd',
                  month_no: '0',
                  account: '597810597811',
                  password: 'JH7jyrRq5fZDnNBuWscPMhTQ2VAaEd',
                  customer: '',
                  quantity: '',
                  brand_name: '韵达快递',
                  u_id: 'kop_35665',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '韵达',
                brand_type: 'yd',
                waybill_quantity: '12',
              },
              {
                id: '4423',
                source: {
                  auth_id: '35636',
                  source_type: '6',
                  brand: 'jt',
                  month_no: '0',
                  account: '123',
                  password: 'kkk',
                  customer: '',
                  quantity: '',
                  brand_name: '极兔速递',
                  u_id: 'kop_35636',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '极兔',
                brand_type: 'jt',
                waybill_quantity: '6',
              },
              {
                id: '4424',
                source: {
                  auth_id: '35646',
                  source_type: '6',
                  brand: 'tt',
                  month_no: '0',
                  account: 'ddd',
                  password: '123',
                  customer: 'ddd',
                  quantity: '',
                  brand_name: '天天快递',
                  u_id: 'kop_35646',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '天天',
                brand_type: 'tt',
                waybill_quantity: '6',
              },
              {
                id: '4430',
                source: {
                  branch_code: '774892',
                  branch_name: '广西省贺州',
                  brand_code: 'YTO',
                  brand_type: '2',
                  brand_name: '圆通',
                  kb_code: 'yt',
                  allocated_quantity: '23',
                  cancel_quantity: '0',
                  quantity: '1',
                  address: [
                    {
                      detail: '水果市场',
                      district: '八步区',
                      city: '贺州市',
                      province: '广西壮族自治区',
                    },
                  ],
                  auth_id: '35661',
                  source_type: '12',
                  nickname: '快宝网络',
                  u_id: 'wuliuyun_774892',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '圆通',
                brand_type: 'yt',
                waybill_quantity: '6',
              },
              {
                id: '4450',
                source: {
                  auth_id: '35664',
                  source_type: '6',
                  brand: 'post',
                  month_no: '0',
                  account: '123',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '邮政快递包裹',
                  u_id: 'kop_35664',
                },
                status: '1',
                status_value: '1',
                price: '0.50',
                brand_name: '邮政快包',
                brand_type: 'post',
                waybill_quantity: '6',
              },
              {
                id: '4451',
                source: {
                  auth_id: '35673',
                  source_type: '6',
                  brand: 'sf',
                  month_no: '0',
                  account: '123',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '顺丰速运',
                  u_id: 'kop_35673',
                },
                status: '1',
                status_value: '1',
                price: '1.01',
                brand_name: '顺丰',
                brand_type: 'sf',
                waybill_quantity: '6',
              },
              {
                id: '4458',
                source: {
                  branch_code: '200003',
                  brand_code: 'STO',
                  brand_type: 'STO',
                  brand_name: '申通',
                  kb_code: 'sto',
                  branch_name: '上海虹桥公司',
                  allocated_quantity: 21052,
                  cancel_quantity: 85,
                  quantity: 27,
                  address: [
                    {
                      city: '上海市',
                      detail: '通协路269号6号楼6楼A单元',
                      district: '长宁区',
                      province: '上海',
                    },
                  ],
                  segment_code: 'NORMAL',
                  auth_id: '35660',
                  source_type: '2',
                  nickname: 'alilan02042',
                  u_id: 'taobao_200003',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '申通',
                brand_type: 'sto',
                waybill_quantity: '6',
              },
              {
                id: '4469',
                source: {
                  branch_code: '51405',
                  brand_code: 'ZTO',
                  brand_name: '中通快递',
                  kb_code: 'zt',
                  brand_type: 2,
                  branch_name: '昆山花桥',
                  allocated_quantity: '422',
                  cancel_quantity: '2',
                  quantity: '14',
                  address: [
                    {
                      country: '中国',
                      province: '江苏省',
                      city: '苏州市',
                      district: '昆山市',
                      detail: '曹新路76号(快宝网络测试)',
                    },
                  ],
                  auth_id: '35658',
                  source_type: '18',
                  nickname: 'pdd3982093908',
                  u_id: 'pindd_51405',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '中通',
                brand_type: 'zt',
                waybill_quantity: '1',
              },
            ],
          },
          {
            user_id: '50',
            site_name: '杜康2',
            courier_info: '13661964640',
            waybill_source: [
              {
                id: '4442',
                source: {
                  auth_id: '35635',
                  source_type: '6',
                  brand: 'yd',
                  month_no: '0',
                  account: 'kkk',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '韵达快递',
                  u_id: 'kop_35635',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '韵达',
                brand_type: 'yd',
                waybill_quantity: '-1',
              },
              {
                id: '4443',
                source: {
                  auth_id: '35646',
                  source_type: '6',
                  brand: 'tt',
                  month_no: '0',
                  account: 'ddd',
                  password: '123',
                  customer: 'ddd',
                  quantity: '',
                  brand_name: '天天快递',
                  u_id: 'kop_35646',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '天天',
                brand_type: 'tt',
                waybill_quantity: '0',
              },
              {
                id: '4444',
                source: {
                  branch_code: '51405',
                  brand_code: 'ZTO',
                  brand_name: '中通快递',
                  kb_code: 'zt',
                  brand_type: 2,
                  branch_name: '昆山花桥',
                  allocated_quantity: '418',
                  cancel_quantity: '2',
                  quantity: '16',
                  address: [
                    {
                      country: '中国',
                      province: '江苏省',
                      city: '苏州市',
                      district: '昆山市',
                      detail: '曹新路76号(快宝网络测试)',
                    },
                  ],
                  auth_id: '35658',
                  source_type: '18',
                  nickname: 'pdd3982093908',
                  u_id: 'pindd_51405',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '中通',
                brand_type: 'zt',
                waybill_quantity: '-1',
              },
            ],
          },
        ],
      },
    });
  },
  // 单号源设置，单号源下拉选择
  'POST /Api/orderManage/WaybillSource/listWithBrand': (req, res) => {
    res.send({
      code: 0,
      msg: '成功',
      data: {
        yd: {
          kop: [
            {
              auth_id: '35635',
              source_type: '6',
              brand: 'yd',
              month_no: '0',
              account: 'kkk',
              password: '123',
              customer: '',
              quantity: '',
              brand_name: '韵达快递',
            },
            {
              auth_id: '35665',
              source_type: '6',
              brand: 'yd',
              month_no: '0',
              account: '597810597811',
              password: 'JH7jyrRq5fZDnNBuWscPMhTQ2VAaEd',
              customer: '',
              quantity: '',
              brand_name: '韵达快递',
            },
          ],
        },
        jt: {
          kop: [
            {
              auth_id: '35636',
              source_type: '6',
              brand: 'jt',
              month_no: '0',
              account: '123',
              password: 'kkk',
              customer: '',
              quantity: '',
              brand_name: '极兔速递',
            },
          ],
        },
        tt: {
          kop: [
            {
              auth_id: '35646',
              source_type: '6',
              brand: 'tt',
              month_no: '0',
              account: 'ddd',
              password: '123',
              customer: 'ddd',
              quantity: '',
              brand_name: '天天快递',
            },
          ],
        },
        post: {
          kop: [
            {
              auth_id: '35664',
              source_type: '6',
              brand: 'post',
              month_no: '0',
              account: '123',
              password: '123',
              customer: '',
              quantity: '',
              brand_name: '邮政快递包裹',
            },
          ],
        },
        sto44: {
          kop: [
            {
              auth_id: '35666',
              source_type: '15',
              brand: 'sto44',
              month_no: '0',
              account: '天桥东05',
              password: '123456',
              customer: '279280',
              quantity: '',
              brand_name: '申通快递',
            },
            {
              auth_id: '35667',
              source_type: '15',
              brand: 'sto44',
              month_no: '0',
              account: '000',
              password: '000',
              customer: '来了',
              quantity: '',
              brand_name: '申通快递',
            },
          ],
        },
        sf: {
          kop: [
            {
              auth_id: '35673',
              source_type: '6',
              brand: 'sf',
              month_no: '0',
              account: '123',
              password: '123',
              customer: '',
              quantity: '',
              brand_name: '顺丰速运',
            },
          ],
        },
        zt: {
          kop: [
            {
              auth_id: '35675',
              source_type: '6',
              brand: 'zt',
              month_no: '0',
              account: '111',
              password: '111',
              customer: '',
              quantity: '',
              brand_name: '中通快递',
            },
          ],
          pdd_universal: [
            {
              branch_code: '31271',
              brand_code: 'ZTO',
              brand_name: '中通快递',
              kb_code: 'zt',
              brand_type: 2,
              branch_name: '高碑店白沟',
              allocated_quantity: '0',
              cancel_quantity: '0',
              quantity: '0',
              address: [
                {
                  country: '中国',
                  province: '河北省',
                  city: '保定市',
                  district: '南市区',
                  detail: '快宝测试地址',
                },
              ],
              auth_id: '35659',
              source_type: '19',
              nickname: '41014143166_2251799814896318',
            },
            {
              branch_code: '51405',
              brand_code: 'ZTO',
              brand_name: '中通快递',
              kb_code: 'zt',
              brand_type: 2,
              branch_name: '昆山花桥',
              allocated_quantity: '10',
              cancel_quantity: '0',
              quantity: '20',
              address: [
                {
                  country: '中国',
                  province: '江苏省',
                  city: '苏州市',
                  district: '昆山市',
                  detail: '花桥花安路快宝网络',
                },
              ],
              auth_id: '35659',
              source_type: '19',
              nickname: '41014143166_2251799814896318',
            },
          ],
          taobao: [
            {
              branch_code: '51405',
              brand_code: 'ZTO',
              brand_type: 'ZTO',
              brand_name: '中通',
              kb_code: 'zt',
              branch_name: '昆山花桥',
              allocated_quantity: 16067,
              cancel_quantity: 28,
              quantity: 219,
              address: [
                {
                  city: '苏州市',
                  detail: '花桥镇',
                  district: '昆山市',
                  province: '江苏省',
                },
              ],
              segment_code: 'NORMAL',
              auth_id: '35660',
              source_type: '2',
              nickname: 'alilan02042',
            },
          ],
        },
        sto: {
          taobao: [
            {
              branch_code: '200003',
              brand_code: 'STO',
              brand_type: 'STO',
              brand_name: '申通',
              kb_code: 'sto',
              branch_name: '上海虹桥公司',
              allocated_quantity: 21079,
              cancel_quantity: 85,
              quantity: 0,
              address: [
                {
                  city: '上海市',
                  detail: '通协路269号6号楼6楼A单元',
                  district: '长宁区',
                  province: '上海',
                },
              ],
              segment_code: 'NORMAL',
              auth_id: '35660',
              source_type: '2',
              nickname: 'alilan02042',
            },
            {
              branch_code: '352100',
              brand_code: 'STO',
              brand_type: 'STO',
              brand_name: '申通',
              kb_code: 'sto',
              branch_name: '福建宁德公司',
              allocated_quantity: 0,
              cancel_quantity: 0,
              quantity: 0,
              address: [
                {
                  city: '宁德市',
                  detail: '中山路1号（周明测试）',
                  district: '蕉城区',
                  province: '福建省',
                },
              ],
              segment_code: 'NORMAL',
              auth_id: '35660',
              source_type: '2',
              nickname: 'alilan02042',
            },
          ],
          wuliuyun: [
            {
              branch_code: '200003',
              branch_name: '上海虹桥公司',
              brand_code: 'STO',
              brand_type: '2',
              brand_name: '申通',
              kb_code: 'sto',
              allocated_quantity: '965',
              cancel_quantity: '0',
              quantity: '241',
              address: [
                {
                  detail: '上海虹桥公司',
                  district: '闵行区',
                  city: '上海市',
                  province: '上海',
                },
              ],
              auth_id: '35661',
              source_type: '12',
              nickname: '快宝网络',
            },
          ],
        },
        yt: {
          taobao: [
            {
              branch_code: '774892',
              brand_code: 'YTO',
              brand_type: 'YTO',
              brand_name: '圆通',
              kb_code: 'yt',
              branch_name: '广西省贺州',
              allocated_quantity: 25,
              cancel_quantity: 1,
              quantity: 1,
              address: [
                {
                  city: '上海市',
                  detail: '通协路269号6号楼6楼A单元',
                  district: '长宁区',
                  province: '上海',
                },
              ],
              segment_code: 'NORMAL',
              auth_id: '35660',
              source_type: '2',
              nickname: 'alilan02042',
            },
          ],
          wuliuyun: [
            {
              branch_code: '774892',
              branch_name: '广西省贺州',
              brand_code: 'YTO',
              brand_type: '2',
              brand_name: '圆通',
              kb_code: 'yt',
              allocated_quantity: '23',
              cancel_quantity: '0',
              quantity: '1',
              address: [
                {
                  detail: '水果市场',
                  district: '八步区',
                  city: '贺州市',
                  province: '广西壮族自治区',
                },
              ],
              auth_id: '35661',
              source_type: '12',
              nickname: '快宝网络',
            },
          ],
        },
      },
    });
  },
  // 单号设置，编辑单号设置
  'POST /Api/orderManage/WaybillSource/replaceRelation': (req, res) => {
    res.send({
      code: 0,
      msg: '成功',
      data: {},
    });
  },
  // 单号设置，新增单号设置
  'POST /Api/orderManage/WaybillSource/addRelation': (req, res) => {
    res.send({
      code: 0,
      msg: '成功',
      data: {},
    });
  },
  // 单号记录列表
  'GET /Api/orderManage/WaybillRecord/getRecordList': (req, res) => {
    const result = [];
    Array.from({
      length: 200,
    // eslint-disable-next-line array-callback-return
    }).map((item, index) => {
      result.push({
        id: `${index}`,
        price: `12${index}`,
        brand: 'sf',
        apply_at: `2020年5月${index}日15:16:31`,
        waybill_no: `123456789${index}`,
        order_id: `987654321${index}`,
        brand_name: '顺丰',
        courier_info: `张三${index}`,
      });
    });
    res.send({
      msg: '成功',
      code: 0,
      data: {
        list: result,
        page: 1,
        pageSize: 100,
        totalCount: 200,
        totalPages: 2,
      },
    });
  },
  // 微商单号记录列表
  'POST /Api/WsWaybillStatistics/wsWayBillLog': (req, res) => {
    const result = [];
    Array.from({
      length: 50,
    }).forEach((item, index) => {
      result.push({
        data: {
          time: '2020-07-25-2020-07-31',
          id: `${index}2222`,
          share_id: '0',
          order_no: '210209000000017',
          sender_name: '寄件人',
          sender_tel: '',
          sender_mobile: '18321612551',
          sender_province: '上海市',
          sender_city: '上海市',
          sender_district: '长宁区',
          sender_address: '新泾镇通协路建滔商业广场',
          sender_company: '',
          receiver_name: '贝先柳',
          receiver_tel: '',
          receiver_mobile: '18163699217',
          receiver_province: '上海市',
          receiver_city: '上海市',
          receiver_district: '普陀区',
          receiver_address: '通协路靠近建滔商业广场',
          receiver_company: '',
          collection_amount: '0.00',
          to_pay_amount: '0.00',
          order_type: '0',
          create_time: '2021-02-09 17:00:32',
          waybill_no: '9720573258693',
          brand: 'postx',
          print_time: '2021-02-09 17:09:23',
          status: '1',
          retail_id: '3381',
          price: '0.00',
          waybill_status: '未发出',
          brand_name: '中国邮政快递包裹',
        },
        user: {
          id: `${index}333`,
          avatar_url: '',
          nickname: 'My Shop',
          username: '18321612551',
        },
      });
    });
    res.send({
      msg: '成功',
      code: 0,
      data: {
        list: result,
        page: 1,
        page_size: 20,
        total: 200,
      },
    });
  },
  // 单号记录添加下载任务
  'POST /Api/orderManage/WaybillRecord/addTask': (req, res) => {
    res.send({
      code: 0,
      msg: 'ok',
      data: {},
    });
  },
  // 单号记录查看下载任务
  'GET /Api/orderManage/WaybillRecord/getTaskList': (req, res) => {
    const result = [];

    Array.from({
      length: 4,
    }).map((item, index) => {
      result.push({
        exec_time: `2020年5月${index}日15:16:31`,
        status_text: '下载完成',
        status: 1,
        file_name: '2020-5-15-2020-5-15',
        url: '/upload/order/20200602/1.20200602175642.xls',
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        list: result,
        pageSize: 15,
        page: 1,
        totalCount: 4,
      },
    });
  },
  // 单号记录，单号使用统计
  'POST /Api/orderManage/WaybillRecord/waybillSourceStatistics': (req, res) => {
    const result = [];

    Array.from({
      length: 40,
    }).map((item, index) => {
      result.push({
        // id: `${index}`,
        courier_name: `${index}张三`,
        courier_phone: `${index}13166252983`,
        price_cnt: '10.00',
        site_name: '222',
        site_id: '222',
        time: '2020-07-25-2020-07-31',
        used_cnt: `${index}`,
        user_id: `${index}`,
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        data: result,
        count: 2,
      },
    });
  },
  // 微商单号记录，单号使用统计
  'POST /Api/WsWaybillStatistics/wsWayBillStatisticsLog': (req, res) => {
    const result = [];

    Array.from({
      length: 40,
    }).forEach((item, index) => {
      result.push({
        data: {
          num: `${index}`,
          time: '2020-07-25-2020-07-31',
          total_price: '0.00',
        },
        user: {
          id: `user_id_${index}`,
          avatar_url: '',
          nickname: 'My Shop',
          username: '18321612551',
        },
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: result,
    });
  },
  // 单号记录，订单详情
  'GET /Api/orderManage/WaybillRecord/getOrderInfo': (req, res) => {
    res.send({
      msg: '成功',
      code: 0,
      data: {
        // 订单编号
        order_no: '1',
        // 下单时间
        order_time: '2',
        // 订单状态
        order_status: 8,
        // 受理业务员
        courier_name: '3',
        // 受理业务员手机号
        courier_mobile: '4',
        // 运单号
        waybill_no: '5',
        // 是否实名
        is_real_name: '6',
        // 发货者信息
        sender_name: '7',
        sender_phone: '8',
        sender_province: '9',
        sender_city: '10',
        sender_area: '11',
        // 发件人备注
        remark: '12',
        // 货物类型
        goods_type: '13',
        // 货物重量
        goods_weight: '14',
        // 收货者信息
        receive_name: '15',
        receive_phone: '16',
        receive_province: '17',
        receive_city: '18',
        receive_area: '19',
        receive_address: '20',
      },
    });
  },

  // 单号使用统计，添加下载任务
  'POST /Api/orderManage/WaybillRecord/excelWaybillSourceStatistics': (req, res) => {
    res.send({
      code: 0,
      msg: 'ok',
      data: {},
    });
  },
  // 单号使用统计，查看下载任务
  'POST /Api/orderManage/WaybillRecord/excelWaybillSourceStatisticsList': (req, res) => {
    const result = [];

    Array.from({
      length: 2,
    }).map((item, index) => {
      result.push({
        id: `${index}`,
        shop_id: '7',
        fail_msg: '',
        file_name: '123',
        url: '3333333',
        type: '2',
        condition: { startTime: '', endTime: '', shopName: '', searchName: '' },
        checked: '1',
        add_time: '2020-06-12 17:00:30',
        finished_time: null,
        exec_time: `2020-06-12 17:00:30${index}`,
        status: '0',
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        data: result,
        count: 2,
        page: 1,
      },
    });
  },
  // 微商，单号使用统计,，添加下载任务
  'POST /Api/DownTask/addTask': (req, res) => {
    res.send({
      code: 0,
      msg: 'ok',
      data: {},
    });
  },
  // 微商，单号记录、单号使用统计，查看下载任务
  'GET /Api/DownTask/getTaskList': (req, res) => {
    const result = [];

    Array.from({
      length: 20,
    }).forEach((item, index) => {
      result.push({
        exec_time: `2020-06-12 17:00:30${index}`,
        file_name: '123',
        status: '0',
        status_text: '已添加',
        url: '3333333',
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        list: result,
        page: 1,
        pageSize: 15,
        totalCount: 20,
        totalPages: 1,
      },
    });
  },
  // 单号使用统计，查看明细列表
  'POST /Api/YZ/Fund/orderStatisticsDetail': (req, res) => {
    const result = [];

    Array.from({
      length: 40,
    }).map((item, index) => {
      result.push({
        order_date: '2020年5月22日11:05:22',
        order_number: `${index}777`,
        brand: `${index}圆通`,
        operator: '夏起翔',
        price: `${index}`,
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        list: result,
        total: 40,
        page: 1,
      },
    });
  },
  // 代收货款管理
  'POST /Api/orderManage/CollectionOfPayment/collectionPaymentlist': (req, res) => {
    const result = [];
    const isOdd = value => value % 2 == 0;

    Array.from({
      length: 50,
    }).map((item, index) => {
      result.push({
        id: `${index}`,
        waybill_no: `2020052618070751496${index}`,
        site_id: `8${index}`,
        shipper_name: `夏起翔${index}`,
        shipper_mobile: `13166252983${index}`,
        shipper_tel: `13166252983${index}`,
        shipping_name: `xqx${index}`,
        shipping_mobile: `13166252983${index}`,
        shipping_tel: `13166252983${index}`,
        collect_courier_id: `1${index}`,
        collect_courier_name: `王路${index}`,
        collect_courier_mobile: `13661916491${index}`,
        big_customer_name: `12${index}`,
        collection_amount: '4.00',
        pickup_code: 'k25962',
        package_status: '1',
        customer_id: isOdd(index) ? '875112' : '',
        customer_name: index % 3 == 0 ? '王现勇' : '',
        company_name: index % 3 == 0 ? '公司' : '',
        customer_phone: isOdd(index) ? '17596123053' : '',
        brand: 'sto',
        create_at: '2020年5月27日22:04:10',
        update_at: '2020年5月27日23:04:10',
        status: isOdd(index) ? '1' : '2',
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        data: result,
        count: 1000,
        page: 1,
      },
    });
  },
  // 代收货款管理，核销
  'POST /Api/orderManage/CollectionOfPayment/collectionVerification': (req, res) => {
    res.send({
      msg: '成功',
      code: 0,
      data: {},
    });
  },
  // 代收货款管理，回款清单，已回款记录
  'POST /Api/orderManage/CollectionOfPayment/writeOffList': (req, res) => {
    const result = [];

    Array.from({
      length: 40,
    }).map((item, index) => {
      result.push({
        collection_amount: `1${index}100.00`,
        company_name: `快宝${index}`,
        count: `${index}0`,
        customer_name: '夏起翔',
        customer_phone: '15270840581',
        remark: null,
        update_at: `2020-06-18 16:57:01${index}`,
        group_waybill_no: '773045033912095',
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        data: result,
        count: [{ count: 4 }],
        page: 1,
      },
    });
  },
  // 代收货款管理，回款清单，未回款统计
  'POST /Api/orderManage/CollectionOfPayment/noWriteOffList': (req, res) => {
    const result = [];
    const isOdd = value => value % 2 == 0;
    Array.from({
      length: 40,
    }).map((item, index) => {
      result.push({
        collection_amount: '610.00',
        count: '113',
        customer_name: isOdd(index) ? '夏起翔' : '',
        company_name: isOdd(index) ? '公司名称' : '',
        customer_phone: '15270840581',
        group_id:
          '4865,4611,5125,5127,4618,4875,4877,4879,4881,4375,4376,4378,4634,4636,5153,5154,4388,4904,4650,4907,5165,4910,4399,4912,4915,5171,5177,4411,4412,4669,5185,4418,4420,4421,4422,4426,5195,4432,5202,4694,4696,4444,4956,4958,4447,4450,4706,5218,4965,5221,4455,4713,4459,4972,5230,4720,4721,4723,4981,5241,4988,4480,5004,4749,4750,5264,4498,5270,4761,5017,4763,5019,4764,4765,4510,5284,4777,4779,4527,5295,5299,5050,5306,5051,4541,4797,5313,5059,4550,4810,4818,5331,4572,4829,5085,5086,5087,4576,4579,5092,5093,4584,5096,4585,4586,4596,4853,4598,4855,5111,5117,4350,5118',
        group_waybill_no:
          '202005261806459986,2020052618062631784,2020052618065897027,2020052618065830851,2020052618062689294,2020052618064536699,2020052618064538522,2020052618064517703,2020052618064566202,2020052618061272879,2020052618061211959,2020052618061339155,2020052618062795411,2020052618062753401,2020052618070021258,20200526180700972,2020052618061351185,2020052618064736637,2020052618062883241,2020052618064719398,2020052618070014412,2020052618064869452,2020052618061495663,2020052618064831417,2020052618064898794,2020052618070076626,202005261807004652,2020052618061510274,2020052618061597070,2020052618063038558,202005261807011769,2020052618061625938,202005261806164475,202005261806162542,2020052618061640540,2020052618061690011,2020052618070115531,2020052618061616128,2020052618070170585,2020052618063257278,2020052618063274737,2020052618061717117,2020052618065124470,2020052618065166821,2020052618061799331,2020052618061779609,2020052618063363905,202005261807022463,2020052618065190152,2020052618070233915,2020052618061759170,202005261806',
        remark: null,
        id: `${index}`,

        created_at: `2020年5月${index}日11:05:22`,
        waybill_no: `${index}98765431`,
        operator: '夏起翔',
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        data: result,
        count: [{ count: 11 }],
        page: 1,
      },
    });
  },
  // 代收货款管理，查看详情
  'POST /Api/orderManage/CollectionOfPayment/detail': (req, res) => {
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        bindFlag: '0',
        brand: 'ht',
        certificatePath:
          '/x_preview_img_x/BgqPEm6YQD/CloudPrint/2020/07/01/11/38/274306013O1321237966206466769033.jpg',
        channel: 'androids',
        characters: '鲁S济南A136 00 09',
        chargingWeight: '1',
        code1: '136',
        code2: '00',
        code3: '09',
        collectionAmount: '5.00',
        concentratePackage: '济南市内包',
        concentratePackageCode: '',
        createTime: '2020-07-01 11:38:06',
        customLabel: '',
        customerCode: '',
        customerName: '',
        empNo: '',
        freight: '',
        goodsType: '日用品',
        importShopName: '',
        informStatus: '0',
        isEditable: '0',
        isInspection: '1',
        isMonthly: '0',
        isPrint: '0',
        isPrintable: '1',
        isRead: '1',
        isRealname: '已采集',
        isSend: '0',
        mark: '鲁S济南A',
        openId: '',
        orderCategory: '自填',
        orderKinds: 'orderS',
        orderNumber: '507014188600001',
        orgCode: '',
        packageStatus: '',
        packetMoney: '0',
        paymentNotifiable: '0',
        pickerMobile: '12345678901',
        pickerName: '夏起翔',
        pickupCode: '0011120',
        price: '0.00',
        printType: '2',
        printedAwardable: '0',
        printerCopyInvisible: '0',
        printerPaperInvisible: '0',
        proposedPrice: '0.00',
        realNameType: '',
        realPay: '0.00',
        receiptsUnderCustody: '0.00',
        receiveAddress: '啊啊啊',
        receiveArea: '黄浦',
        receiveCity: '上海',
        receiveName: '701',
        receivePhone: '18715276549',
        receiveProvince: '上海',
        receiveTel: '',
        remark: '',
        reserveEndTime: null,
        reserveStartTime: null,
        senderAddress: '新泾镇建滔商业广场',
        senderArea: '长宁区',
        senderCity: '上海市',
        senderId: '0',
        senderName: '701',
        senderPhone: '18715276649',
        senderProvince: '上海市',
        senderTel: '',
        shopId: '67281',
        shopName: '上海快宝公司',
        siteName: '济南市内包',
        source: '',
        status: '2',
        statusText: '已完成',
        stoIsRealname: '0',
        thirdPartyOrderId: '',
        toPayAmount: '',
        wayBillNo: '50911062060959',
        withHoldStatus: '0',
        withHoldType: 'normal',
      },
    });
  },
  // 代收货款管理，下载表格
  'GET /Api/orderManage/CollectionOfPayment/exportOrder': (req, res) => {
    res.send({
      msg: '下载成功',
      code: 0,
      data: {},
    });
  },
  // 客户管理
  'POST /Api/orderManage/Customer/customerList': (req, res) => {
    const result = [];
    Array.from({
      length: 300,
    }).map((item, index) => {
      result.push({
        id: `${index}`,
        work_kb_id: '8139',
        courier_id: '2',
        customer: `${index}快宝急送`,
        linkman_name: 'ffsfs',
        linkman_mobile: '13166252983',
        remark: 'daddsd',
        company_site_id: '10',
        courier_name: '周新瑜',
        courier_phone: '13566666666',
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        list: result,
        page_size: 20,
        current_page: 1,
        total_page: 1,
        count: 300,
      },
    });
  },
  // 客户管理，获取公司列表
  'POST /Api/YZ/Fund/companyList': (req, res) => {
    const result = [];
    Array.from({
      length: 40,
    }).map((item, index) => {
      result.push({
        company_name: `快宝（上海）网络技术有限公司${index}`,
        company_id: `${index}`,
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        list: result,
      },
    });
  },
  // 客户管理，添加客户信息
  'POST /Api/orderManage/Customer/addCustomer': (req, res) => {
    res.send({
      msg: '添加成功',
      code: 0,
      data: {},
    });
  },
  // 客户管理，编辑客户信息
  'POST /Api/orderManage/Customer/updateCustomer': (req, res) => {
    res.send({
      msg: '编辑成功',
      code: 0,
      data: {},
    });
  },
  // 客户管理，编辑客户信息
  'POST /Api/orderManage/Customer/deleteCustomer': (req, res) => {
    res.send({
      msg: '删除成功',
      code: 0,
      data: {},
    });
  },
  // 客户管理，获取级联选择器数据
  'POST /Api/orderManage/Customer/getCourierInfoAll': (req, res) => {
    res.send(
      mock({
        code: 0,
        msg: '成功',
        'data|1-20': {
          '@increment(1)': {
            value: '@id',
            label: '快宝急送',
            'children|2-10': [
              {
                value: /^1\d{10}/,
                courier_phone: /^1\d{10}/,
                label: `@cname()${mock(/^1\d{10}/)}`,
                courier_no: '@id',
                kdy_id: '@id',
              },
            ],
          },
        },
      }),
    );
  },
  // 订单详情列表
  'POST /Api/YZ/Fund/getOrderDetailList': (req, res) => {
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        list: {
          company_name: '快宝（上海）网络技术有限公司',
          contacts: '夏起翔',
          phone: '234567891',
          operator: '夏起翔',
          info: '农行：123456789',
        },
      },
    });
  },
  // 微商户管理
  'POST /Api/Ws/wsInfo': (req, res) => {
    const { page } = req.body;
    res.send(
      mock({
        msg: '暂无结果',
        code: 0,
        data: {
          'list|15': [
            {
              id: '@id()',
              shop_name: '@ctitle(5)',
              phone: /^1\d{10}/,
              courier_name: '@cname()',
              courier_phone: /^1\d{10}/,
              company_site_id: '@id',
              ws_id: '@id',
            },
          ],
          current_page: page,
          page_size: 15,
          count: 150,
        },
      }),
    );
  },
  // 编辑微商客户信息
  'POST /Api/Ws/updateWs': (req, res) => {
    res.send({
      msg: '编辑成功',
      code: 0,
      data: {},
    });
  },
  //
  // 删除微商客户
  'POST /Api/Ws/deleteWs': (req, res) => {
    res.send({
      msg: '删除成功',
      code: 0,
      data: {},
    });
  },
  // 增加微商客户
  'POST /Api/Ws/addWs': (req, res) => {
    res.send({
      msg: '添加成功',
      code: 0,
      data: {},
    });
  },
  // 根据手机号码查询微商信息
  'POST /Api/Ws/searchPhone': (req, res) => {
    res.send(
      mock({
        code: 0,
        msg: 'success',
        'data|1': [
          {
            is_register: 1,
            info: {
              shop_name: '我的店铺名',
              mobile: '13166252983',
              id: '17332',
              kb_id: '4643',
            },
          },
          {
            is_register: 0,
            info: {},
          },
        ],
      }),
    );
  },
  // 根据id获取微商客户信息
  'POST /Api/Ws/getTblWsOne': (req, res) => {
    res.send({
      code: 0,
      msg: '成功',
      data: [
        {
          id: '11',
          shop_name: '小微企业',
          phone: '1316622983',
          courier_name: '啊嗯27',
          courier_phone: '18715276640',
          courier_no: '74',
        },
      ],
    });
  },

  // 单号设置， 获取微商客户
  'GET /Api/orderManage/WaybillSource/getWechatMerchantList': (req, res) => {
    res.send(
      mock({
        code: 0,
        msg: '成功',
        data: {
          page: 1,
          pageSize: 20,
          totalPages: 1,
          totalCount: 5,
          list: [
            {
              user_id: '17759',
              shop_name: '画不圆的圈',
              phone: '18300761174',
              waybill_source: [
                {
                  id: '4434',
                  source: {
                    auth_id: '35646',
                    source_type: '6',
                    brand: 'tt',
                    month_no: '0',
                    account: 'ddd',
                    password: '123',
                    customer: 'ddd',
                    quantity: '',
                    brand_name: '天天快递',
                    u_id: 'kop_35646',
                  },
                  status: '0',
                  status_value: '0',
                  price: '0.03',
                  brand_name: '天天',
                  brand_type: 'tt',
                  waybill_quantity: '20',
                },
                {
                  id: '4460',
                  source: {
                    branch_code: '31271',
                    brand_code: 'ZTO',
                    brand_name: '中通快递',
                    kb_code: 'zt',
                    brand_type: 2,
                    branch_name: '高碑店白沟',
                    allocated_quantity: '0',
                    cancel_quantity: '0',
                    quantity: '0',
                    address: [
                      {
                        country: '中国',
                        province: '河北省',
                        city: '保定市',
                        district: '南市区',
                        detail: '快宝测试地址',
                      },
                    ],
                    auth_id: '35659',
                    source_type: '19',
                    nickname: '41014143166_2251799814896318',
                    u_id: 'pdd_universal_31271',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '中通',
                  brand_type: 'zt',
                  waybill_quantity: '10',
                },
                {
                  id: '4467',
                  source: {
                    auth_id: '35635',
                    source_type: '6',
                    brand: 'yd',
                    month_no: '0',
                    account: 'kkk',
                    password: '123',
                    customer: '',
                    quantity: '',
                    brand_name: '韵达快递',
                    u_id: 'kop_35635',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '韵达',
                  brand_type: 'yd',
                  waybill_quantity: '1',
                },
              ],
            },
            {
              user_id: '332437',
              shop_name: '我的店铺名',
              phone: '13661916491',
              waybill_source: [
                {
                  id: '4436',
                  source: {
                    auth_id: '35665',
                    source_type: '6',
                    brand: 'yd',
                    month_no: '0',
                    account: '597810597811',
                    password: 'JH7jyrRq5fZDnNBuWscPMhTQ2VAaEd',
                    customer: '',
                    quantity: '',
                    brand_name: '韵达快递',
                    u_id: 'kop_35665',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '韵达',
                  brand_type: 'yd',
                  waybill_quantity: '30',
                },
                {
                  id: '4437',
                  source: {
                    auth_id: '35646',
                    source_type: '6',
                    brand: 'tt',
                    month_no: '0',
                    account: 'ddd',
                    password: '123',
                    customer: 'ddd',
                    quantity: '',
                    brand_name: '天天快递',
                    u_id: 'kop_35646',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '天天',
                  brand_type: 'tt',
                  waybill_quantity: '-1',
                },
                {
                  id: '4438',
                  source: {
                    branch_code: '51405',
                    brand_code: 'ZTO',
                    brand_name: '中通快递',
                    kb_code: 'zt',
                    brand_type: 2,
                    branch_name: '昆山花桥',
                    allocated_quantity: '422',
                    cancel_quantity: '2',
                    quantity: '14',
                    address: [
                      {
                        country: '中国',
                        province: '江苏省',
                        city: '苏州市',
                        district: '昆山市',
                        detail: '曹新路76号(快宝网络测试)',
                      },
                    ],
                    auth_id: '35658',
                    source_type: '18',
                    nickname: 'pdd3982093908',
                    u_id: 'pindd_51405',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '中通',
                  brand_type: 'zt',
                  waybill_quantity: '1',
                },
              ],
            },
            {
              user_id: '17337',
              shop_name: '测试账号',
              phone: '17596123053',
              waybill_source: [
                {
                  id: '4439',
                  source: {
                    auth_id: '35635',
                    source_type: '6',
                    brand: 'yd',
                    month_no: '0',
                    account: 'kkk',
                    password: '123',
                    customer: '',
                    quantity: '',
                    brand_name: '韵达快递',
                    u_id: 'kop_35635',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '韵达',
                  brand_type: 'yd',
                  waybill_quantity: '-1',
                },
                {
                  id: '4440',
                  source: {
                    auth_id: '35646',
                    source_type: '6',
                    brand: 'tt',
                    month_no: '0',
                    account: 'ddd',
                    password: '123',
                    customer: 'ddd',
                    quantity: '',
                    brand_name: '天天快递',
                    u_id: 'kop_35646',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '天天',
                  brand_type: 'tt',
                  waybill_quantity: '-1',
                },
                {
                  id: '4447',
                  source: {
                    auth_id: '35664',
                    source_type: '6',
                    brand: 'post',
                    month_no: '0',
                    account: '123',
                    password: '123',
                    customer: '',
                    quantity: '',
                    brand_name: '邮政快递包裹',
                    u_id: 'kop_35664',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.10',
                  brand_name: '邮政快包',
                  brand_type: 'post',
                  waybill_quantity: '3',
                },
                {
                  id: '4448',
                  source: {
                    auth_id: '35673',
                    source_type: '6',
                    brand: 'sf',
                    month_no: '0',
                    account: '123',
                    password: '123',
                    customer: '',
                    quantity: '',
                    brand_name: '顺丰速运',
                    u_id: 'kop_35673',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.01',
                  brand_name: '顺丰',
                  brand_type: 'sf',
                  waybill_quantity: '-1',
                },
                {
                  id: '4449',
                  source: {
                    branch_code: '51405',
                    brand_code: 'ZTO',
                    brand_type: 'ZTO',
                    brand_name: '中通',
                    kb_code: 'zt',
                    branch_name: '昆山花桥',
                    allocated_quantity: 16058,
                    cancel_quantity: 28,
                    quantity: 228,
                    address: [
                      {
                        city: '苏州市',
                        detail: '花桥镇',
                        district: '昆山市',
                        province: '江苏省',
                      },
                    ],
                    segment_code: 'NORMAL',
                    auth_id: '35660',
                    source_type: '2',
                    nickname: 'alilan02042',
                    u_id: 'taobao_51405',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '中通',
                  brand_type: 'zt',
                  waybill_quantity: '-1',
                },
                {
                  id: '4459',
                  source: {
                    branch_code: '774892',
                    brand_code: 'YTO',
                    brand_type: 'YTO',
                    brand_name: '圆通',
                    kb_code: 'yt',
                    branch_name: '广西省贺州',
                    allocated_quantity: 25,
                    cancel_quantity: 1,
                    quantity: 1,
                    address: [
                      {
                        city: '上海市',
                        detail: '通协路269号6号楼6楼A单元',
                        district: '长宁区',
                        province: '上海',
                      },
                    ],
                    segment_code: 'NORMAL',
                    auth_id: '35660',
                    source_type: '2',
                    nickname: 'alilan02042',
                    u_id: 'taobao_774892',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '圆通',
                  brand_type: 'yt',
                  waybill_quantity: '-1',
                },
                {
                  id: '4461',
                  source: {
                    auth_id: '35636',
                    source_type: '6',
                    brand: 'jt',
                    month_no: '0',
                    account: '123',
                    password: 'kkk',
                    customer: '',
                    quantity: '',
                    brand_name: '极兔速递',
                    u_id: 'kop_35636',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '极兔',
                  brand_type: 'jt',
                  waybill_quantity: '-1',
                },
                {
                  id: '4482',
                  source: {
                    branch_code: '200003',
                    branch_name: '上海虹桥公司',
                    brand_code: 'STO',
                    brand_type: '2',
                    brand_name: '申通',
                    kb_code: 'sto',
                    allocated_quantity: '965',
                    cancel_quantity: '0',
                    quantity: '241',
                    address: [
                      {
                        detail: '上海虹桥公司',
                        district: '闵行区',
                        city: '上海市',
                        province: '上海',
                      },
                    ],
                    auth_id: '35661',
                    source_type: '12',
                    nickname: '快宝网络',
                    u_id: 'wuliuyun_200003',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '申通',
                  brand_type: 'sto',
                  waybill_quantity: '-1',
                },
              ],
            },
            {
              user_id: '17828',
              shop_name: '旭东小商品城',
              phone: '18715276649',
              waybill_source: [
                {
                  id: '4422',
                  source: {
                    auth_id: '35665',
                    source_type: '6',
                    brand: 'yd',
                    month_no: '0',
                    account: '597810597811',
                    password: 'JH7jyrRq5fZDnNBuWscPMhTQ2VAaEd',
                    customer: '',
                    quantity: '',
                    brand_name: '韵达快递',
                    u_id: 'kop_35665',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '韵达',
                  brand_type: 'yd',
                  waybill_quantity: '12',
                },
                {
                  id: '4423',
                  source: {
                    auth_id: '35636',
                    source_type: '6',
                    brand: 'jt',
                    month_no: '0',
                    account: '123',
                    password: 'kkk',
                    customer: '',
                    quantity: '',
                    brand_name: '极兔速递',
                    u_id: 'kop_35636',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '极兔',
                  brand_type: 'jt',
                  waybill_quantity: '6',
                },
                {
                  id: '4424',
                  source: {
                    auth_id: '35646',
                    source_type: '6',
                    brand: 'tt',
                    month_no: '0',
                    account: 'ddd',
                    password: '123',
                    customer: 'ddd',
                    quantity: '',
                    brand_name: '天天快递',
                    u_id: 'kop_35646',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '天天',
                  brand_type: 'tt',
                  waybill_quantity: '6',
                },
                {
                  id: '4430',
                  source: {
                    branch_code: '774892',
                    branch_name: '广西省贺州',
                    brand_code: 'YTO',
                    brand_type: '2',
                    brand_name: '圆通',
                    kb_code: 'yt',
                    allocated_quantity: '23',
                    cancel_quantity: '0',
                    quantity: '1',
                    address: [
                      {
                        detail: '水果市场',
                        district: '八步区',
                        city: '贺州市',
                        province: '广西壮族自治区',
                      },
                    ],
                    auth_id: '35661',
                    source_type: '12',
                    nickname: '快宝网络',
                    u_id: 'wuliuyun_774892',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '圆通',
                  brand_type: 'yt',
                  waybill_quantity: '6',
                },
                {
                  id: '4450',
                  source: {
                    auth_id: '35664',
                    source_type: '6',
                    brand: 'post',
                    month_no: '0',
                    account: '123',
                    password: '123',
                    customer: '',
                    quantity: '',
                    brand_name: '邮政快递包裹',
                    u_id: 'kop_35664',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.50',
                  brand_name: '邮政快包',
                  brand_type: 'post',
                  waybill_quantity: '6',
                },
                {
                  id: '4451',
                  source: {
                    auth_id: '35673',
                    source_type: '6',
                    brand: 'sf',
                    month_no: '0',
                    account: '123',
                    password: '123',
                    customer: '',
                    quantity: '',
                    brand_name: '顺丰速运',
                    u_id: 'kop_35673',
                  },
                  status: '1',
                  status_value: '1',
                  price: '1.01',
                  brand_name: '顺丰',
                  brand_type: 'sf',
                  waybill_quantity: '6',
                },
                {
                  id: '4458',
                  source: {
                    branch_code: '200003',
                    brand_code: 'STO',
                    brand_type: 'STO',
                    brand_name: '申通',
                    kb_code: 'sto',
                    branch_name: '上海虹桥公司',
                    allocated_quantity: 21052,
                    cancel_quantity: 85,
                    quantity: 27,
                    address: [
                      {
                        city: '上海市',
                        detail: '通协路269号6号楼6楼A单元',
                        district: '长宁区',
                        province: '上海',
                      },
                    ],
                    segment_code: 'NORMAL',
                    auth_id: '35660',
                    source_type: '2',
                    nickname: 'alilan02042',
                    u_id: 'taobao_200003',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '申通',
                  brand_type: 'sto',
                  waybill_quantity: '6',
                },
                {
                  id: '4469',
                  source: {
                    branch_code: '51405',
                    brand_code: 'ZTO',
                    brand_name: '中通快递',
                    kb_code: 'zt',
                    brand_type: 2,
                    branch_name: '昆山花桥',
                    allocated_quantity: '422',
                    cancel_quantity: '2',
                    quantity: '14',
                    address: [
                      {
                        country: '中国',
                        province: '江苏省',
                        city: '苏州市',
                        district: '昆山市',
                        detail: '曹新路76号(快宝网络测试)',
                      },
                    ],
                    auth_id: '35658',
                    source_type: '18',
                    nickname: 'pdd3982093908',
                    u_id: 'pindd_51405',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '中通',
                  brand_type: 'zt',
                  waybill_quantity: '1',
                },
              ],
            },
            {
              user_id: '50',
              shop_name: '杜康2',
              phone: '13661964640',
              waybill_source: [
                {
                  id: '4442',
                  source: {
                    auth_id: '35635',
                    source_type: '6',
                    brand: 'yd',
                    month_no: '0',
                    account: 'kkk',
                    password: '123',
                    customer: '',
                    quantity: '',
                    brand_name: '韵达快递',
                    u_id: 'kop_35635',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '韵达',
                  brand_type: 'yd',
                  waybill_quantity: '-1',
                },
                {
                  id: '4443',
                  source: {
                    auth_id: '35646',
                    source_type: '6',
                    brand: 'tt',
                    month_no: '0',
                    account: 'ddd',
                    password: '123',
                    customer: 'ddd',
                    quantity: '',
                    brand_name: '天天快递',
                    u_id: 'kop_35646',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '天天',
                  brand_type: 'tt',
                  waybill_quantity: '0',
                },
                {
                  id: '4444',
                  source: {
                    branch_code: '51405',
                    brand_code: 'ZTO',
                    brand_name: '中通快递',
                    kb_code: 'zt',
                    brand_type: 2,
                    branch_name: '昆山花桥',
                    allocated_quantity: '418',
                    cancel_quantity: '2',
                    quantity: '16',
                    address: [
                      {
                        country: '中国',
                        province: '江苏省',
                        city: '苏州市',
                        district: '昆山市',
                        detail: '曹新路76号(快宝网络测试)',
                      },
                    ],
                    auth_id: '35658',
                    source_type: '18',
                    nickname: 'pdd3982093908',
                    u_id: 'pindd_51405',
                  },
                  status: '1',
                  status_value: '1',
                  price: '0.00',
                  brand_name: '中通',
                  brand_type: 'zt',
                  waybill_quantity: '-1',
                },
              ],
            },
          ],
        },
      }),
    );
  },
  // 单号设置，微商编辑单号设置
  'POST /Api/orderManage/WaybillSource/cityShareWechatUpdateRelation': (req, res) => {
    res.send({
      code: 0,
      msg: '成功',
      data: {},
    });
  },
  // 单号设置，微商新增单号设置
  'POST /Api/orderManage/WaybillSource/cityShareWechatRelation': (req, res) => {
    res.send({
      code: 0,
      msg: '成功',
      data: {},
    });
  },
  // 微商单号记录，查看详情
  'POST /Api/WsWaybillStatistics/wsWayBillDetail': (req, res) => {
    res.send({
      code: 0,
      msg: 'success',
      data: {
        id: '402',
        share_id: '0',
        order_no: '210304070000065',
        sender_name: '早餐',
        sender_tel: '',
        sender_mobile: '17596123053',
        sender_province: '广东',
        sender_city: '深圳市',
        sender_district: '龙岗区',
        sender_address: '平湖街道世之鼎物流园',
        sender_company: '',
        receiver_name: '刘煜新',
        receiver_tel: '',
        receiver_mobile: '13524386704',
        receiver_province: '黑龙江',
        receiver_city: '早餐',
        receiver_district: '大庆',
        receiver_address: '乘风街道东湖10135502',
        receiver_company: '',
        collection_amount: '0.00',
        to_pay_amount: '0.00',
        order_type: '0',
        create_time: '2021-03-04 11:21:28',
        waybill_no: '1136813637527',
        brand: 'post',
        print_time: '2021-03-04 11:21:41',
        status: '1',
        retail_id: '4447',
        price: '0.00',
        realname_status_name: '未实名',
        waybill_status: '未发出',
        note: '这是备注！！！！！',
        courier: {
          courier_id: 0,
          c_order_no: '',
          courier_mobile: '12345678',
          courier_name: '业务员',
          monthly: '',
          is_companypay: '',
          type: '',
          index_shop_id: '',
        },
        item: {
          item_id: '1929351',
          order_id: '109060877',
          item_name: '唐僧肉',
          item_short_name: '唐僧肉',
          item_img:
            'http://upload.kuaidihelp.com/vhome/commodities/2019/05/29/201905291514465cee31664fbf0.jpg',
          item_price: '0.01',
          item_weight: '10.00',
          item_freight: '0.00',
          item_num: '5',
          item_note: '备注备注',
          item_sku_id: '',
          is_deleted: '0',
          create_time: '2021-03-04 11:21:28',
          update_time: '0000-00-00 00:00:00',
          item_type: '0',
        },
      },
    });
  },
  // 驿站获取业务员列表
  'POST /Api/orderManage/WaybillSource/getInnerList': (req, res) => {
    res.send({
      code: 0,
      msg: '成功',
      data: {
        page: 1,
        pageSize: 20,
        totalPages: 1,
        totalCount: 5,
        list: [
          {
            cm_id: '17759',
            concat_name: '画不圆的圈',
            phone: '18300761174',
            inn_name: '驿站名称1',
            waybill_source: [
              {
                id: '4434',
                source: {
                  auth_id: '35646',
                  source_type: '6',
                  brand: 'tt',
                  month_no: '0',
                  account: 'ddd',
                  password: '123',
                  customer: 'ddd',
                  quantity: '',
                  brand_name: '天天快递',
                  u_id: 'kop_35646',
                },
                status: '0',
                status_value: '0',
                price: '0.03',
                brand_name: '天天',
                brand_type: 'tt',
                waybill_quantity: '20',
              },
              {
                id: '4460',
                source: {
                  branch_code: '31271',
                  brand_code: 'ZTO',
                  brand_name: '中通快递',
                  kb_code: 'zt',
                  brand_type: 2,
                  branch_name: '高碑店白沟',
                  allocated_quantity: '0',
                  cancel_quantity: '0',
                  quantity: '0',
                  address: [
                    {
                      country: '中国',
                      province: '河北省',
                      city: '保定市',
                      district: '南市区',
                      detail: '快宝测试地址',
                    },
                  ],
                  auth_id: '35659',
                  source_type: '19',
                  nickname: '41014143166_2251799814896318',
                  u_id: 'pdd_universal_31271',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '中通',
                brand_type: 'zt',
                waybill_quantity: '10',
              },
              {
                id: '4467',
                source: {
                  auth_id: '35635',
                  source_type: '6',
                  brand: 'yd',
                  month_no: '0',
                  account: 'kkk',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '韵达快递',
                  u_id: 'kop_35635',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '韵达',
                brand_type: 'yd',
                waybill_quantity: '1',
              },
            ],
          },
          {
            cm_id: '332437',
            concat_name: '我的店铺名',
            phone: '13661916491',
            inn_name: '驿站名称2',
            waybill_source: [
              {
                id: '4436',
                source: {
                  auth_id: '35665',
                  source_type: '6',
                  brand: 'yd',
                  month_no: '0',
                  account: '597810597811',
                  password: 'JH7jyrRq5fZDnNBuWscPMhTQ2VAaEd',
                  customer: '',
                  quantity: '',
                  brand_name: '韵达快递',
                  u_id: 'kop_35665',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '韵达',
                brand_type: 'yd',
                waybill_quantity: '30',
              },
              {
                id: '4437',
                source: {
                  auth_id: '35646',
                  source_type: '6',
                  brand: 'tt',
                  month_no: '0',
                  account: 'ddd',
                  password: '123',
                  customer: 'ddd',
                  quantity: '',
                  brand_name: '天天快递',
                  u_id: 'kop_35646',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '天天',
                brand_type: 'tt',
                waybill_quantity: '-1',
              },
              {
                id: '4438',
                source: {
                  branch_code: '51405',
                  brand_code: 'ZTO',
                  brand_name: '中通快递',
                  kb_code: 'zt',
                  brand_type: 2,
                  branch_name: '昆山花桥',
                  allocated_quantity: '422',
                  cancel_quantity: '2',
                  quantity: '14',
                  address: [
                    {
                      country: '中国',
                      province: '江苏省',
                      city: '苏州市',
                      district: '昆山市',
                      detail: '曹新路76号(快宝网络测试)',
                    },
                  ],
                  auth_id: '35658',
                  source_type: '18',
                  nickname: 'pdd3982093908',
                  u_id: 'pindd_51405',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '中通',
                brand_type: 'zt',
                waybill_quantity: '1',
              },
            ],
          },
          {
            cm_id: '17337',
            concat_name: '测试账号',
            phone: '17596123053',
            inn_name: '驿站名称',
            waybill_source: [
              {
                id: '4439',
                source: {
                  auth_id: '35635',
                  source_type: '6',
                  brand: 'yd',
                  month_no: '0',
                  account: 'kkk',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '韵达快递',
                  u_id: 'kop_35635',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '韵达',
                brand_type: 'yd',
                waybill_quantity: '-1',
              },
              {
                id: '4440',
                source: {
                  auth_id: '35646',
                  source_type: '6',
                  brand: 'tt',
                  month_no: '0',
                  account: 'ddd',
                  password: '123',
                  customer: 'ddd',
                  quantity: '',
                  brand_name: '天天快递',
                  u_id: 'kop_35646',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '天天',
                brand_type: 'tt',
                waybill_quantity: '-1',
              },
              {
                id: '4447',
                source: {
                  auth_id: '35664',
                  source_type: '6',
                  brand: 'post',
                  month_no: '0',
                  account: '123',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '邮政快递包裹',
                  u_id: 'kop_35664',
                },
                status: '1',
                status_value: '1',
                price: '0.10',
                brand_name: '邮政快包',
                brand_type: 'post',
                waybill_quantity: '3',
              },
              {
                id: '4448',
                source: {
                  auth_id: '35673',
                  source_type: '6',
                  brand: 'sf',
                  month_no: '0',
                  account: '123',
                  password: '123',
                  customer: '',
                  quantity: '',
                  brand_name: '顺丰速运',
                  u_id: 'kop_35673',
                },
                status: '1',
                status_value: '1',
                price: '0.01',
                brand_name: '顺丰',
                brand_type: 'sf',
                waybill_quantity: '-1',
              },
              {
                id: '4449',
                source: {
                  branch_code: '51405',
                  brand_code: 'ZTO',
                  brand_type: 'ZTO',
                  brand_name: '中通',
                  kb_code: 'zt',
                  branch_name: '昆山花桥',
                  allocated_quantity: 16058,
                  cancel_quantity: 28,
                  quantity: 228,
                  address: [
                    {
                      city: '苏州市',
                      detail: '花桥镇',
                      district: '昆山市',
                      province: '江苏省',
                    },
                  ],
                  segment_code: 'NORMAL',
                  auth_id: '35660',
                  source_type: '2',
                  nickname: 'alilan02042',
                  u_id: 'taobao_51405',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '中通',
                brand_type: 'zt',
                waybill_quantity: '-1',
              },
              {
                id: '4459',
                source: {
                  branch_code: '774892',
                  brand_code: 'YTO',
                  brand_type: 'YTO',
                  brand_name: '圆通',
                  kb_code: 'yt',
                  branch_name: '广西省贺州',
                  allocated_quantity: 25,
                  cancel_quantity: 1,
                  quantity: 1,
                  address: [
                    {
                      city: '上海市',
                      detail: '通协路269号6号楼6楼A单元',
                      district: '长宁区',
                      province: '上海',
                    },
                  ],
                  segment_code: 'NORMAL',
                  auth_id: '35660',
                  source_type: '2',
                  nickname: 'alilan02042',
                  u_id: 'taobao_774892',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '圆通',
                brand_type: 'yt',
                waybill_quantity: '-1',
              },
              {
                id: '4461',
                source: {
                  auth_id: '35636',
                  source_type: '6',
                  brand: 'jt',
                  month_no: '0',
                  account: '123',
                  password: 'kkk',
                  customer: '',
                  quantity: '',
                  brand_name: '极兔速递',
                  u_id: 'kop_35636',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '极兔',
                brand_type: 'jt',
                waybill_quantity: '-1',
              },
              {
                id: '4482',
                source: {
                  branch_code: '200003',
                  branch_name: '上海虹桥公司',
                  brand_code: 'STO',
                  brand_type: '2',
                  brand_name: '申通',
                  kb_code: 'sto',
                  allocated_quantity: '965',
                  cancel_quantity: '0',
                  quantity: '241',
                  address: [
                    {
                      detail: '上海虹桥公司',
                      district: '闵行区',
                      city: '上海市',
                      province: '上海',
                    },
                  ],
                  auth_id: '35661',
                  source_type: '12',
                  nickname: '快宝网络',
                  u_id: 'wuliuyun_200003',
                },
                status: '1',
                status_value: '1',
                price: '0.00',
                brand_name: '申通',
                brand_type: 'sto',
                waybill_quantity: '-1',
              },
            ],
          },
        ],
      },
    });
  },
  // 驿站编辑单号源
  'POST /Api/orderManage/WaybillSource/addInnerSource': (req, res) => {
    res.send({
      msg: '编辑成功',
      code: 0,
      data: {},
    });
  },
  // 驿站单号记录，获取列表
  'POST /Api/orderManage/WaybillRecord/getInnRecordList': (req, res) => {
    const result = [];
    Array.from({
      length: 50,
    }).forEach((item, index) => {
      result.push({
        id: `${index}`,
        order_id: `987654321${index}`,
        waybill_no: `123456789${index}`,
        price: `12${index}`,
        apply_at: `2020年5月${index}日15:16:31`,
        // brand: `sf`,
        brand_name: '顺丰',
        inn_info: `驿站——张三${index}`,
      });
    });
    res.send({
      msg: '成功',
      code: 0,
      data: {
        page: 1,
        pageSize: 20,
        totalPages: 2,
        totalCount: 50,
        list: result,
      },
    });
  },
  // 驿站单号记录，单号使用统计列表
  'POST /Api/orderManage/WaybillRecord/waybillSourceInnStatistics': (req, res) => {
    const result = [];
    Array.from({
      length: 40,
    }).forEach((item, index) => {
      result.push({
        user_id: `${index}`,
        price_cnt: `1${index}`,
        used_cnt: `2${index}`,
        cm_id: `cm_id${index}`,
        cm_name: `cm_id${index}`,
        concat_phone: `${index}13166252983`,
        concat_name: `${index}张三-驿站`,
        time: '2020-07-25-2020-07-31',
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        data: result,
        count: 2,
        page: 1,
      },
    });
  },
  // 驿站，单号使用统计，添加下载任务
  'POST /Api/DownTask/YZddTask': (req, res) => {
    res.send({
      code: 0,
      msg: 'ok',
      data: {},
    });
  },
  // 驿站，单号使用统计，查看下载任务
  'POST /Api/DownTask/YZgetTaskList': (req, res) => {
    const result = [];

    Array.from({
      length: 20,
    }).forEach((item, index) => {
      result.push({
        exec_time: `2020-06-12 17:00:30${index}`,
        file_name: '123',
        status: '0',
        status_text: '已添加',
        url: '3333333',
      });
    });
    res.send({
      msg: '暂无结果',
      code: 0,
      data: {
        list: result,
        page: 1,
        pageSize: 15,
        totalCount: 20,
        totalPages: 1,
      },
    });
  },
  // 微商单号记录，查看详情
  'POST /Api/WsWaybillStatistics/yzWayBillDetail': (req, res) => {
    res.send({
      code: 0,
      msg: 'success',
      data: {
        id: '402',
        share_id: '0',
        order_no: '210304070000065',
        sender_name: '早餐',
        sender_tel: '',
        sender_mobile: '17596123053',
        sender_province: '广东',
        sender_city: '深圳市',
        sender_district: '龙岗区',
        sender_address: '平湖街道世之鼎物流园',
        sender_company: '',
        receiver_name: '刘煜新',
        receiver_tel: '',
        receiver_mobile: '13524386704',
        receiver_province: '黑龙江',
        receiver_city: '早餐',
        receiver_district: '大庆',
        receiver_address: '乘风街道东湖10135502',
        receiver_company: '',
        collection_amount: '0.00',
        to_pay_amount: '0.00',
        order_type: '0',
        create_time: '2021-03-04 11:21:28',
        waybill_no: '1136813637527',
        brand: 'post',
        print_time: '2021-03-04 11:21:41',
        status: '1',
        retail_id: '4447',
        price: '0.00',
        realname_status_name: '未实名',
        waybill_status: '未发出',
        note: '这是备注！！！！！',
        courier: {
          courier_id: 0,
          c_order_no: '',
          courier_mobile: '12345678',
          courier_name: '业务员',
          monthly: '',
          is_companypay: '',
          type: '',
          index_shop_id: '',
        },
        item: {
          item_id: '1929351',
          order_id: '109060877',
          item_name: '唐僧肉',
          item_short_name: '唐僧肉',
          item_img:
            'http://upload.kuaidihelp.com/vhome/commodities/2019/05/29/201905291514465cee31664fbf0.jpg',
          item_price: '0.01',
          item_weight: '10.00',
          item_freight: '0.00',
          item_num: '5',
          item_note: '备注备注',
          item_sku_id: '',
          is_deleted: '0',
          create_time: '2021-03-04 11:21:28',
          update_time: '0000-00-00 00:00:00',
          item_type: '0',
        },
      },
    });
  },
  // 单号设置，单号充值记录
  'POST /Api/orderManage/WaybillRecord/waybillSourceLog': (req, res) => {
    const { pageNum } = req.body;
    res.send(
      mock({
        code: 0,
        msg: '成功',
        data: {
          'data|15': [
            {
              'id|1-10000': 10000,
              'share_id|1-10000': 10000,
              owner_id: '240',
              owner_role: '4',
              user_id: '32',
              user_role: '5',
              'set_type|1': ['unLimit', 'limit'],
              'quantity|1': ['0', '+1', '-2'],
              create_time: '@date',
              source: {
                brand: 'ht',
                title: '3',
                content: '快递公司自有面单',
              },
              vhome_user_id: '32',
              userType: 'vhome',
              name: '微商32',
              courieName: '吧好的VB防护v',
              couriePhone: '15837899712',
              courieTypeName: '微商',
              'brand|1': ['ht', 'zt', 'sf', 'yd'],
              info: '百世快递快递',
              content: '快递公司自有面单(351145_0629)',
              title: '商家账号：351145_0629',
            },
          ],
          page: pageNum,
          total: 40,
        },
      }),
    );
  },
};
